import request from "@/utils/request";
// 查询年修缮计划
export function listAll(data) {
  return request({
    url: "/repairProject/listPlanYear",
    method: "GET",
    params: { ...data },
  });
}

// /repairProject/createPlanYear 创建年修缮计划
export function createPlanYear(data) {
  return request({
    url: "/repairProject/createPlanYear",
    method: "POST",
    data,
  });
}

// /repairProject/updatePlanYear 修改年修缮计划
export function updatePlanYear(data) {
  return request({
    url: "/repairProject/updatePlanYear",
    method: "POST",
    data,
  });
}
// /repairProject/deletePlanYear/{id} 删除年修缮计划

export function deletePlanYear(id) {
  return request({
    url: `/repairProject/deletePlanYear/${id}`,
    method: "POST",
  });
}

// /repairProject/backPlanYear/{id} 退回年修缮计划
export function backPlanYear(id) {
  return request({
    url: `/repairProject/backPlanYear/${id}`,
    method: "POST",
  });
}

// /mall-admin/repairProject/reportPlanYear/{id} 上报牛修缮计划
export function reportPlanYear(data) {
  return request({
    url: `/repairProject/reportPlanYear`,
    method: "POST",
    data,
  });
}

// /mall-admin/repairProject/listPlanMonth 查询月修缮计划
export function listPlanMonth(data) {
  return request({
    url: `/repairProject/listPlanMonth`,
    method: "GET",
    params: data,
  });
}

// /repairProject/createPlanMonth 创建月修缮计划
export function createPlanMonth(data) {
  return request({
    url: "/repairProject/createPlanMonth",
    method: "POST",
    data,
  });
}

// /repairProject/updatePlanMonth 修改月修缮计划
export function updatePlanMonth(data) {
  return request({
    url: "/repairProject/updatePlanMonth",
    method: "POST",
    data,
  });
}

// /repairProject/deletePlanMonth/{id} 删除月修缮

export function deletePlanMonth(id) {
  return request({
    url: `/repairProject/deletePlanMonth/${id}`,
    method: "POST",
  });
}

// /repairProject/reportPlanMonth/{id} 上报月修缮计划
export function reportPlanMonth(id) {
  return request({
    url: `/repairProject/reportPlanMonth/${id}`,
    method: "POST",
  });
}

// /repairProject/backPlanMonth/{id} 退回月修缮计划
export function backPlanMonth(id) {
  return request({
    url: `/repairProject/backPlanMonth/${id}`,
    method: "POST",
  });
}

// /repairProject/listPlanMonthStatistics 查询统计
export function listPlanMonthStatistics(data) {
  return request({
    url: "/repairProject/listPlanMonthStatistics",
    method: "GET",
    params: { ...data },
  });
}
// /repairProject/createPlanMonthStatistics 创建月计划统计

export function createPlanMonthStatistics(data) {
  return request({
    url: "/repairProject/createPlanMonthStatistics",
    method: "POST",
    data,
  });
}

// /repairProject/updatePlanMonthStatistics 修改月计划统计录入

export function updatePlanMonthStatistics(data) {
  return request({
    url: "/repairProject/updatePlanMonthStatistics",
    method: "POST",
    data,
  });
}

// /repairProject/deletePlanMonthStatistics/{id} 删除统计
export function deletePlanMonthStatistics(id) {
  return request({
    url: `/repairProject/deletePlanMonthStatistics/${id}`,
    method: "POST",
  });
}

// /repairProject/reportPlanMonthStatistics/{id}
export function reportPlanMonthStatistics(id) {
  return request({
    url: `/repairProject/reportPlanMonthStatistics/${id}`,
    method: "POST",
  });
}

//mall-admin/repairProject/backPlanMonthStatistics/{id}
export function backPlanMonthStatistics(id) {
  return request({
    url: `/repairProject/backPlanMonthStatistics/${id}`,
    method: "POST",
  });
}

// /mall-admin/repairProject/listRepairFundsSupervision 查询经费

export function listRepairFundsSupervision(data) {
  return request({
    url: "/repairProject/listRepairFundsSupervision",
    method: "GET",
    params: { ...data },
  });
}

// /repairProject/createRepairFundsSupervision 创建经费
export function createRepairFundsSupervision(data) {
  return request({
    url: "/repairProject/createRepairFundsSupervision",
    method: "POST",
    data,
  });
}

// /repairProject/updatePlanMonthStatistics 修改经费
export function updateRepairFundsSupervision(data) {
  return request({
    url: "/repairProject/updateRepairFundsSupervision",
    method: "POST",
    data,
  });
}

// /repairProject/detailRepairFundsSupervision/{id} 详情接口
export function detailRepairFundsSupervision(id) {
  return request({
    url: `/repairProject/detailRepairFundsSupervision/${id}`,
    method: "POST",
  });
}

// /repairProject/deleteRepairFundsSupervision/{id}
export function deleteRepairFundsSupervision(id) {
  return request({
    url: `/repairProject/deleteRepairFundsSupervision/${id}`,
    method: "POST",
  });
}
// submitOrBackRepairFundsSupervision

export function submitOrBackRepairFundsSupervision(data) {
  return request({
    url: `/repairProject/submitOrBackRepairFundsSupervision`,
    method: "POST",
    data,
  });
}

// /mall-admin/brokenRepairProject/listBrokenRepairOrder 维修工单查询

export function listBrokenRepairOrder(data) {
  return request({
    url: "/brokenRepairProject/listBrokenRepairOrder",
    method: "GET",
    params: { ...data },
  });
}
// /brokenRepairProject/createBrokenRepairOrder 维修工单新增
export function createBrokenRepairOrder(data) {
  return request({
    url: `/brokenRepairProject/createBrokenRepairOrder`,
    method: "POST",
    data,
  });
}

// /brokenRepairProject/updateBrokenRepairOrder
export function updateBrokenRepairOrder(data) {
  return request({
    url: `/brokenRepairProject/updateBrokenRepairOrder`,
    method: "POST",
    data,
  });
}

// /mall-admin/brokenRepairProject/deleteBrokenRepairOrder/{id} 删除维修工单
export function deleteBrokenRepairOrder(id) {
  return request({
    url: `/brokenRepairProject/deleteBrokenRepairOrder/${id}`,
    method: "POST",
  });
}

// /brokenRepairProject/banTuoBrokenRepairOrder/{id} 办妥
export function banTuoBrokenRepairOrder(id) {
  return request({
    url: `/brokenRepairProject/banTuoBrokenRepairOrder/${id}`,
    method: "POST",
  });
}

// /mall-admin/brokenRepairProject/createBrokenRepairOrderVisit 创建回访
export function createBrokenRepairOrderVisit(data) {
  return request({
    url: `/brokenRepairProject/createBrokenRepairOrderVisit`,
    method: "POST",
    data,
  });
}

// /brokenRepairProject/brokenRepairOrderVisitDetail 查看回访详情
export function brokenRepairOrderVisitDetail(brokenRepairOrderId) {
  return request({
    url: `/brokenRepairProject/brokenRepairOrderVisitDetail?brokenRepairOrderId=${brokenRepairOrderId}`,
    method: "GET",
  });
}

// /brokenRepairProject/updateBrokenRepairOrderVisit 修改住户回访
export function updateBrokenRepairOrderVisit(data) {
  return request({
    url: `/brokenRepairProject/updateBrokenRepairOrderVisit`,
    method: "POST",
    data,
  });
}

// /mall-admin/brokenRepairProject/deleteBrokenRepairOrderVisit/{id} 删除住户回访
export function deleteBrokenRepairOrderVisit(id) {
  return request({
    url: `/brokenRepairProject/deleteBrokenRepairOrderVisit/${id}`,
    method: "POST",
  });
}

// /mall-admin/brokenRepairProject/listBrokenRepairOrderManage 报销管理
export function listBrokenRepairOrderManage(data) {
  return request({
    url: "/brokenRepairProject/listBrokenRepairOrderManage",
    method: "GET",
    params: { ...data },
  });
}

// /mall-admin/brokenRepairProject/createBrokenRepairOrderManage 创建报修
export function createBrokenRepairOrderManage(data) {
  return request({
    url: `/brokenRepairProject/createBrokenRepairOrderManage`,
    method: "POST",
    data,
  });
}
// /mall-admin/brokenRepairProject/updateBrokenRepairOrderManage
export function updateBrokenRepairOrderManage(data) {
  return request({
    url: `/brokenRepairProject/updateBrokenRepairOrderManage`,
    method: "POST",
    data,
  });
}

// /brokenRepairProject/deleteBrokenRepairOrderManage/{id}
export function deleteBrokenRepairOrderManage(id) {
  return request({
    url: `/brokenRepairProject/deleteBrokenRepairOrderManage/${id}`,
    method: "POST",
  });
}

// /brokenRepairProject/zhuanGongDan/{id} 转工单
export function zhuanGongDan(id) {
  return request({
    url: `/brokenRepairProject/zhuanGongDan/${id}`,
    method: "POST",
  });
}

// /mall-admin/brokenRepairProject/listBrokenRepairOrderStatistics

export function listBrokenRepairOrderStatistics(data) {
  return request({
    url: "/brokenRepairProject/listBrokenRepairOrderStatistics",
    method: "GET",
    params: { ...data },
  });
}
// /mall-admin/brokenRepairProject/createBrokenRepairOrderStatistics
export function createBrokenRepairOrderStatistics(data) {
  return request({
    url: `/brokenRepairProject/createBrokenRepairOrderStatistics`,
    method: "POST",
    data,
  });
}

// /mall-admin/brokenRepairProject/updateBrokenRepairOrderStatistics
export function updateBrokenRepairOrderStatistics(data) {
  return request({
    url: `/brokenRepairProject/updateBrokenRepairOrderStatistics`,
    method: "POST",
    data,
  });
}

// /mall-admin/brokenRepairProject/reportBrokenRepairOrderStatistics/{id}.
export function reportBrokenRepairOrderStatistics(id) {
  return request({
    url: `/brokenRepairProject/reportBrokenRepairOrderStatistics/${id}`,
    method: "POST",
  });
}
// /mall-admin/brokenRepairProject/deleteBrokenRepairOrderStatistics/{id}
export function deleteBrokenRepairOrderStatistics(id) {
  return request({
    url: `/brokenRepairProject/deleteBrokenRepairOrderStatistics/${id}`,
    method: "POST",
  });
}

// /mall-admin

export function updateReportPlanYear(data) {
  return request({
    url: `/repairProject/updateReportPlanYear`,
    method: "POST",
    data,
  });
}

// /repairProject/detailPlanYear
export function detailPlanYear(data) {
  return request({
    url: `/repairProject/detailPlanYear`,
    method: "POST",
    data,
  });
}

export function listPlanYearForImport(data) {
  return request({
    url: `/repairProject/listPlanYearForImport`,
    method: "GET",
    params: data,
  });
}

// /repairProject/PlanMonthRecorde

export function PlanMonthRecorde(data) {
  return request({
    url: `/repairProject/PlanMonthRecorde`,
    method: "POST",
    data,
  });
}

// /mall-admin/repairProject/statisticsData1

export function statisticsData1(data) {
  return request({
    url: `/repairProject/statisticsData1`,
    method: "POST",
    data,
  });
}

export function statisticsData2(data) {
  return request({
    url: `/repairProject/statisticsData2`,
    method: "POST",
    data,
  });
}

// /mall-admin
export function statisticsData4(data) {
  return request({
    url: `/repairProject/statisticsData4`,
    method: "POST",
    data,
  });
}

export function statisticsData5(data) {
  return request({
    url: `/repairProject/statisticsData5`,
    method: "POST",
    data,
  });
}
// /mall-admin/repairProject/statisticsData7
export function statisticsData7(data) {
  return request({
    url: `/repairProject/statisticsData7`,
    method: "POST",
    data,
  });
}

// /mall-admin/repairProject/statisticsData8
export function statisticsData8(data) {
  return request({
    url: `/repairProject/statisticsData8`,
    method: "POST",
    data,
  });
}

// /mall-admin/repairProject/statisticsData6

export function statisticsData6(data) {
  return request({
    url: `/repairProject/statisticsData6`,
    method: "POST",
    data,
  });
}

// /mall-admin/repairProject/statisticsData3
export function statisticsData3(data) {
  return request({
    url: `/repairProject/statisticsData3`,
    method: "POST",
    data,
  });
}
